package com.seqb.manage.menu.service;

import com.github.pagehelper.Page;
import com.seqb.common.ResultVo;
import com.seqb.common.Tree;
import com.seqb.manage.menu.domain.MenuDO;
import com.seqb.utils.PageUtils;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author lilinshen
 * @title 菜单表
 * @description 请填写相关描述
 * @date 2019/11/15
 */
public interface MenuService {

    MenuDO get(Long id);

    Page<MenuDO> list(Map<String, Object> map);

    List<Tree<MenuDO>> listTree(Long id);

    int count(Map<String, Object> map);

    int save(MenuDO menu);

    int update(MenuDO menu);

    int remove(Long id);

    int batchRemove(Long[] ids);

    Set<String> listPerms(Long userId);

    PageUtils menuTree(Long id);
}
